const nodeCmd = require('node-cmd');

module.exports = {
    async runCmd(cmd) {
        return new Promise((resolve, reject) => {
            nodeCmd.get(cmd, function(err, data, stderr) {
                resolve(data)
            })
        })
    }
}